package com.bite.messageQueue.mqServer.core;

/**
 * 交换机的枚举类型
 */
public enum ExchangeType {
    //直接交换机
    DIRECT(0),
    //扇出交换机
    FANOUT(1),
    //主题交换机
    TOPIC(2);

    private final int type;

    private ExchangeType(int type) {
        this.type = type;
    }

    public int getType() {
        return type;
    }
}
